# import math
import random as ra
# from math import sqrt
from math import *
import demo_10

# PI = math.pi
PI = pi  # 当导入模块的所有内容时，就不需要使用模块名.函数名（常量名）了，直接用即可，在这里为了不修改大量代码所以赋值一下
def circle_area(r):
    global PI
    return PI * r * r

area = circle_area(3)
print(area)

res = sqrt(area)
print(res)

def random_circle_area():
    r = ra.randint(1,100)
    print(r)
    global PI
    return PI * r ** 2
area1 = random_circle_area()
print(area1)

res = demo_10.fun2(1,10)
print(res)

demo_10.fun_test()